<style type="text/css">
	
#bill table {
	border: 1px solid #B1CDE3;
	padding: 0;
	margin: 0 auto;
	border-collapse: collapse;
}

#bill td {
	border: 1px solid #B1CDE3;
	background: #fff;
	text-align:center;
	font-size: 12px;
	padding: 3px 3px 3px 8px;
	color: #4f6b72;
	height:25px;
}

#bill .text_left{
	text-align:left;
	margin-left: 1px;
}
</style>
<div id="bill">
<table width="100%">
<tr align="center"><td colspan=6><B>账单详细信息</B></td></tr>
<tr><td width="20%">账户名:</td><td width="40%" class="text_left">${userName}</td><td rowspan="2" colspan="2" width="60%"><B style="color: red;">费用提示：</B><br/><B><#if (payableAmount > 0)>本期费用未结清，请尽快结清！<#else>您本期费用已结清，无需另外付费！</#if></B></td></tr>
<tr><td>账单周期：</td><td width="40%" class="text_left">${startDate} ~ ${endDate}</td></tr>
<tr><td>投递时间:</td><td colspan="2" class="text_left">${deliverTime}</td></tr>
<tr><td>打印时间:</td><td colspan="3" class="text_left">${createdTime}</td></tr>
<tr><td align="center" colspan=3 ><B>账单费用信息（元）</B></td></tr>
<tr><td width="20%">打印序号</td><td width= "60%">费用项目</td><td>金额(元)</td></tr>
<#list billItems as billItem>
<tr><td width="20%">${billItem.printOrder}</td><td class="text_left" style="font-weight:bold;" colspan=2>${billItem.servName}</td></tr>
<#list billItem.acctItems as acctItem>
<tr><td width="20%">&nbsp;</td><td width= "60%">${acctItem.typeName}</td><td>${acctItem.amount?string(",##0.00")}(元)</td></tr>
</#list>
<tr><td width="20%">&nbsp;</td><td width= "60%">费用小计</td><td>${billItem.sumAmount?string(",##0.00")}(元)</td></tr>
</#list>
<tr><td><B style="color: red;">本期费用合计：</B></td><td colspan="2"><B>${amount?string(",##0.00")}(元)</B></td></tr>
<tr><td><B style="color: red;">本期已付费用：</B></td><td colspan="2"><B>${paidAmount?string(",##0.00")}(元)</B></td></tr>
<tr><td><B style="color: red;">本期应付金额：</B></td><td colspan="2"><B>${payableAmount?string(",##0.00")}(元)=${amount?string(",##0.00")}(本期费用合计)-${paidAmount?string(",##0.00")}(本期已付费用)</B></td></tr>
</table>
</div>